<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: 张洪瑞
  Date: 2021-6-22  0022
  Time: 上午 11:12:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <!-- 引入 layui.css -->
    <!--pageContext.request.contextPath:获取项目的路径 -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <!-- 引入 layui.js -->
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>
</head>
<body>
<%
    String timeString = (String)session.getAttribute("timeString");//获取格式化后的时间字符串
%>
<form class="layui-form layui-form-pane" action="" style="margin-top: 5px;margin-left: 100px;">
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">账号</label>
        <div class="layui-input-inline">
            <input disabled type="text" name="id" lay-verify="required" value="${user.id}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">昵称</label>
        <div class="layui-input-inline">
            <input type="text" name="username" lay-verify="required" value="${user.username}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">密码</label>
        <div class="layui-input-inline">
            <input type="text" name="username" lay-verify="required" value="${user.password}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">角色</label>
        <div class="layui-input-inline">
            <input disabled type="text" name="role" lay-verify="required" value="${user.roleId}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">手机</label>
        <div class="layui-input-inline">
            <input disabled type="text" name="phone" lay-verify="required" value="${user.phone}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">注册</label>
        <div class="layui-input-inline">
            <input disabled type="text" name="createdate" lay-verify="required" value="<%=timeString%>" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 62px;">备注</label>
        <div class="layui-input-inline">
            <input type="text" name="remark" lay-verify="required" value="${user.remark}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-inline">
            <button type="button" class="layui-btn layui-btn-normal layui-btn-lg" style="width: 252px;">修改</button>
        </div>
    </div>
</form>
<script>
    var time = ${user.createdate};
    alert("时间："+time);
</script>
<%--    var data = ${user.createdate}--%>

<%--<%--%>
<%--    SimpleDateFormat time = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");--%>
<%--    time.format(data);--%>

<%--%>--%>
</body>
</html>
